package com.cssl.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class DtsTopic implements Serializable {
    Integer id;
    String title;
    /**
     * 子标题
     */
    String subTitle;
    String content;
    /**
     * 商品最低价
     */
    Double price;
    /**
     * 阅读量
     */
    String readCount;
    String picUrl;
    Integer sortOrder;
    /**
     * 商品序列码,用逗号分隔
     */
    String goods;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date updateTime;
    String shareUrl;
    Integer deleted;

    @Override
    public String toString() {
        return "DtsTopic{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", subTitle='" + subTitle + '\'' +
                ", content='" + content + '\'' +
                ", price=" + price +
                ", readCount='" + readCount + '\'' +
                ", picUrl='" + picUrl + '\'' +
                ", sortOrder=" + sortOrder +
                ", goods='" + goods + '\'' +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", shareUrl='" + shareUrl + '\'' +
                ", deleted=" + deleted +
                '}';
    }

    public DtsTopic() {
    }

    public DtsTopic(Integer id, String title, String subTitle, String content, Double price, String readCount, String picUrl, Integer sortOrder, String goods, Date addTime, Date updateTime, String shareUrl, Integer deleted) {
        this.id = id;
        this.title = title;
        this.subTitle = subTitle;
        this.content = content;
        this.price = price;
        this.readCount = readCount;
        this.picUrl = picUrl;
        this.sortOrder = sortOrder;
        this.goods = goods;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.shareUrl = shareUrl;
        this.deleted = deleted;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getReadCount() {
        return readCount;
    }

    public void setReadCount(String readCount) {
        this.readCount = readCount;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
